/*
 *  $Id: NightmareHunter.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Light.Creatures {
    public class NightmareHunter: CreatureCard {
        public NightmareHunter(): base("001_l_c_nightmare_hunter") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Light;
            Value = 100;
            Damage = 3;
            Health = 3;
            AddManaCost(ElementType.Light, 3);
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add<Affects.Fearless>();
        }
        public override void SetAbilities(ICollector<AbilityCard> abilities) {
            abilities.Add(new LightArrow(2));
        }

        private class LightArrow: Neutral.Abilities.ArrowShot {
            public LightArrow(): this(1) {}
            public LightArrow(int power): base("001_l_a_light_arrow", power) {
                SetPictureSource<Neutral.Abilities.ArrowShot>();
                Element = ElementType.Light;
            }

            protected override void DoAction(TargetArgs<Creature> args) {
                base.DoAction(args);
                args.Target.HealBy(NewDamage(args, DamageType.Health, 1));
            }
        }
    }
}
